package org.wu.framework.authorization.platform.infrastructure.converter;

import org.wu.framework.authorization.platform.domain.model.sys.role.permission.SysRolePermission;
import org.wu.framework.authorization.platform.infrastructure.entity.SysRolePermissionDO;
import org.wu.framework.core.mapper.LazyStructMappers;
import org.wu.framework.core.mapper.LazyStructMapper;
/**
 * describe 角色权限关系 
 *
 * @author Jia wei Wu
 * @date 2025/08/03 01:55 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter 
 **/
@LazyStructMapper
public interface SysRolePermissionConverter {


    /**
     * describe LazyStructMapper 创建的代理对象
     *
     
     
     
     * @author Jia wei Wu
     * @date 2025/08/03 01:55 下午
     **/
    SysRolePermissionConverter INSTANCE = LazyStructMappers.getMapper(SysRolePermissionConverter.class);
    /**
     * describe 实体对象 转换成领域对象
     *
     * @param sysRolePermissionDO 角色权限关系实体对象     
     * @return {@link SysRolePermission} 角色权限关系领域对象     
     
     * @author Jia wei Wu
     * @date 2025/08/03 01:55 下午
     **/
    SysRolePermission toSysRolePermission(SysRolePermissionDO sysRolePermissionDO);
    /**
     * describe 领域对象 转换成实体对象
     *
     * @param sysRolePermission 角色权限关系领域对象     
     * @return {@link SysRolePermissionDO} 角色权限关系实体对象     
     
     * @author Jia wei Wu
     * @date 2025/08/03 01:55 下午
     **/
     SysRolePermissionDO fromSysRolePermission(SysRolePermission sysRolePermission); 
}